import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter,Route,Router,Redirect,IndexRoute } from 'react-router-dom';
import createHashHistory from 'history/createHashHistory';
/*import MyReact from './../template/User/myReact';*/
/*import testpage from './../template/testpage';*/
import Error from './../template/User/errorPage';
/*import twoPage from './../template/User/twoPage';*/
import Login from '../template/User/Login';
import RgstCst from './../template/User/RgstCst';
import UsrHome from './../template/User/UsrHome';
import UsrCenter from './../template/User/personalCenter';
import Orgination from './../template/User/Orgination';
import RrveDetail from './../template/User/RrveDetail';
import PackageList from './../template/User/PackageList';
import PlatHome from  './../template/Platform/Home';
import BasicPkg from  './../template/Platform/BasicPkg';
import Instutions from  './../template/Platform/InstutionsMag';
import demo from  './../template/Platform/FormCtnt' ;
import Avatar from  './../template/User/Upload' ;

const history = createHashHistory();
class Roots extends React.Component {
    render() {
        return (
            <div>{this.props.children}</div>
        );
    }
}
const RouteConfig = (
    <Router history={history}>
        <Roots>
             <Route exact path="/" component={Login} />
			{/* <Route path="/MyReact" component={MyReact} />*/}
            <Route path="/login" component={Login} />
            <Route path="/registerCsmer" component={RgstCst}/>
           {/* <Route path="/testPage" component={testpage} />*!/*/}
           {/* <Route path="/twoPage" component={twoPage} />*/}
            <Route path="/UsrHome" component={UsrHome}/>
            <Route path="/UsrCenter" component={UsrCenter}/>
            <Route path="/Orgination" component={Orgination}/>
            <Route path="/PackageList" component={PackageList}/>
            <Route path="/UsrRerv" component={RrveDetail}/>
            <Route path="/Plat" component={PlatHome}/>
            <Route path="/BasicPkg" component={BasicPkg}/>
            <Route path="/InsMag" component={Instutions}/>
            <Route path="/Error" component={Error} />
            <Route path="/Demo" component={demo} />
            <Route path="/Avatar" component={Avatar} />
            <Redirect from='*' to='/'  />
        </Roots>
    </Router>
);

export default RouteConfig;